<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:param name="to"/>

  <xsl:template match="to">
    <!-- check for bad words -->
    <xsl:if test="$to='meconium'">
      
      <!-- error temporarily commented out but no one remembered to comment it in again... -->
<!--      
  <xsl:message terminate="yes">Bad words not allowed. Terminating!</xsl:message>
-->
    </xsl:if>
    
    <xsl:value-of select="$to"/>
  </xsl:template>

  <!-- copy everything else -->
  <xsl:template match="node()|@*">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates select="node()"/>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>
